<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><tiles:insertAttribute name="title" ignore="true" /></title>
<link rel="stylesheet" type="text/css" media="all" href="style.css" />

<script>history.forward();</script>
</head>
<body id="home">
	<s:if test="%{#session.login == 'true'}">
		<div id="wrap">
			<div id="header">
				<tiles:insertAttribute name="header" />
			</div>

			<div id="sidebar">
				<tiles:insertAttribute name="menu" />
			</div>

			<div id="content">
				<tiles:insertAttribute name="body" />
			</div>

			<div id="footer">
				<tiles:insertAttribute name="footer" />
			</div>

			<div id="footer1">
				<tiles:insertAttribute name="footer1" />
			</div>
		</div>
	</s:if>
	<s:else>
		<h2>You have already logged out!</h2>
	</s:else>
</body>
</html>